package com.suneee.store.dao;

import java.util.List;
import java.util.Map;

import com.suneee.context.page.Page;
import com.suneee.orm.Dao;
import com.suneee.store.bean.ViewStockRecordDTO;
import com.suneee.store.entity.ViewStockRecord;

public interface ViewStockRecordDao extends Dao<ViewStockRecord, String> {

	/**
	 * 获得分页
	 * @param dto 参数
	 * @return
	 */
	public Page<Map<String,Object>> viewStockRecordPage(ViewStockRecordDTO dto);
	
	/**
	 * 通过出入库单号和skuId获得单个对象
	 * @param recordId 出入库单号
	 * @param skuId skuId
	 * @return
	 */
	public ViewStockRecord getRecordByRecordIdAndSkuId(String recordId,Integer skuId);
	
	/**
	 * 获得出入库单号
	 * @param dto
	 * @return
	 */
	public List<String> getRecordIdList(ViewStockRecordDTO dto);
	
	/**
	 * 
	 * @param dto
	 * @return
	 */
	public Page<Map<String,Object>> getRecordIdPage(ViewStockRecordDTO dto);
}
